﻿<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
 
    <script type='text/html' template> 
        <input type='hidden' name='PID' value="{{ d.params.PID || '' }}"/>
    </script>   
    <!--<div class='layui-form-item'>
        <label class='layui-form-label'>店铺ID</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='StoreID' value='{{ d.params.StoreID || '' }}' lay-verify='required' placeholder='店铺ID' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>-->   
    <div class='layui-form-item'>
        <label class='layui-form-label'>模板名称<span style="color:red">*</span></label>
        <div class='layui-input-inline' style="width:260px">
            <script type='text/html' template>
                <input type='text' name='RMK' value='{{ d.params.RMK || '' }}' lay-verify='required' placeholder='模板名称' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>基础重量<span style="color:red">*</span></label>
        <div class='layui-input-inline' style="width:260px">
            <script type='text/html' template>
                <input type='text' name='BaseWeight' value='{{ d.params.BaseWeight || '' }}' lay-verify='required|number' placeholder='基础重量 (首重)' autocomplete='off' class='layui-input'>
            </script>
        </div>
        <span style="color:green">首重/kg</span>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>基础运费<span style="color:red">*</span></label>
        <div class='layui-input-inline' style="width:260px">
            <script type='text/html' template>
                <input type='text' name='BasePrice' value='{{ d.params.BasePrice || '' }}' lay-verify='required|number' placeholder='基础运费' autocomplete='off' class='layui-input'>
            </script>
        </div>
        <span style="color:green">商品重量 <= 基础重量，且未达到包邮金额时，基础运费生效</span>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>续重<span style="color:red">*</span></label>
        <div class='layui-input-inline' style="width:260px">
            <script type='text/html' template>
                <input type='text' name='NextWeight' value='{{ d.params.NextWeight || '' }}' lay-verify='required|number' placeholder='续重' autocomplete='off' class='layui-input'>
            </script>
        </div>
        <span style="color:green">续重/kg  超过基础重量的部分为续重</span>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>续重运费<span style="color:red">*</span></label>
        <div class='layui-input-inline' style="width:260px">
            <script type='text/html' template>
                <input type='text' name='NextPrice' value='{{ d.params.NextPrice || '' }}' lay-verify='required|number' placeholder='续重运费' autocomplete='off' class='layui-input'>
            </script>
        </div>
        <span style="color:green">每增加**kg重量需要增加的运费，**号代表续重</span>
    </div>   
    <div class='layui-form-item'>
        <label class='layui-form-label'>包邮金额<span style="color:red">*</span></label>
        <div class='layui-input-inline' style="width:260px">
            <script type='text/html' template>
                <input type='text' name='ShipPrice' value='{{ d.params.ShipPrice || '0' }}' lay-verify='required|number' placeholder='包邮金额' autocomplete='off' class='layui-input'>
            </script>
        </div>
        <span style="color:green">和基础重量构成包邮条件</span><br />
        <span style="color:red">注：包邮金额默认0，为0时表示包邮金额无效</span>
    </div>   
    <!--<div class='layui-form-item'>
        <label class='layui-form-label'>其他</label>
        <div class='layui-input-inline'>
            <script type='text/html' template>
                <input type='text' name='Other' value='{{ d.params.Other || '' }}' lay-verify='' placeholder='其他' autocomplete='off' class='layui-input'>
            </script>
        </div>
    </div>-->     
    <div class='layui-form-item'>
        <label class='layui-form-label'>状态 </label>
        <div class='layui-input-inline' style="width:260px">
            <script type='text/html' template>
                <select name='State_Sel'>
                    <option value='1' {{ d.params.State_Sel == '1' ? 'selected' : '' }}>启用</option>
                    <option value='0' {{ d.params.State_Sel == '0' ? 'selected' : '' }}>未启用</option>
                </select>
            </script>
        </div>
    </div>
     
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class='layui-input-inline' style="width:260px">
            <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
        </div>
    </div>
    <br />
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class='layui-input-block'>
            <span style="color:green">运费计算规则说明：</span><br />
            <span style="color:green">1. 模板下包邮。商品重量 <= 基础重量 且 商品金额 >= (有效)包邮金额</span><br />
            <span style="color:green">2. 取基础运费。商品重量 <= 基础重量 且 商品金额 < (有效)包邮金额, 或包邮金额无效</span><br />
            <span style="color:green">3. 取续重运费。商品重量 > 基础重量 且 商品金额 >= (有效)包邮金额</span><br />
            <span style="color:green">4. 基础运费+续重运费。商品重量 > 基础重量 且 商品金额 < (有效)包邮金额, 或包邮金额无效</span><br />
        </div>
    </div>
</div>

<script type="text/javascript"> 
    layui.use(['form','admin','upload','laydate'], function () {
        var form = layui.form;//required（必填项）phone（手机号）email（邮箱）url（网址）number（数字）date（日期）identity（身份证） 自定义值
    });
    
    layui.data.getSelSource = function (d,sourceName) { 
         layui.use(['admin','form'], function () {
                var $ = layui.$;
                var form = layui.form;
                var admin = layui.admin;
     
        });
    }
 
     
    layui.data.setUpload = function (d) { 
        layui.use(['upload','admin'], function () {
                var $ = layui.$,
                upload = layui.upload,
                admin = layui.admin;
                var formSelects = layui.formSelects;
      
        });
    }

    
    layui.data.datedone = function (d) { 
        layui.use(['laydate'], function () {
                var laydate = layui.laydate;
     
        });
    }   
</script>
